package com.qfedu.zf.life.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qfedu.zf.common.param.CommentCreatDTO;
import com.qfedu.zf.life.entity.Comment;
import com.qfedu.zf.life.mapper.CommentMapper;
import com.qfedu.zf.life.service.CommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wjw
 * @since 2024-06-20
 */
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService {

    @Autowired
    private CommentMapper commentMapper;

    @Override
    public void addComment(CommentCreatDTO commentCreatDTO) {
        commentMapper.insertComment(commentCreatDTO);
    }
}
